 <mettingsa charset="utf-8">

<div class="box box-primary" id="app_mettings_edit" style="max-height: 700px;overflow-y:scroll;overflow-x: hidden;">
 
            <!-- form start -->
            <form role="form" id=mettings_edit_form>
              <div class="box-body">
              
                <div class="form-group">
                  <label for="title">会议标题</label>
                  <input type="text" name="title" v-model="mettings.title" class="form-control" id="title" placeholder="请输入会议标题"  required aria-required="true" >
                </div>
                <div class="form-group">
                  <label for="title">会议子标题</label>
                  <input type="text" name="subTtitle" v-model="mettings.subTtitle" class="form-control" id="subTtitle" placeholder="请输入会议标题"  required aria-required="true" >
                </div>  
                
				<div class="row">
					<div class="col-md-6">
					
						  <div class="form-group">
							<label for="title">会议开始时间</label>  
							<input type='text' class="form-control date form_date" id="metStartTime" v-kmdate="{vmodel:'mettings.metStartTime',format:'yyyy-MM-dd'}" v-model="mettings.metStartTime" /> 
		                   </div>
		                
	                   
					</div>
					<div class="col-md-6">
					
					  <div class="form-group">
								<label for="title">会议结束时间</label>  
								<input type='text' class="form-control date form_date" id="metEndTime" v-kmdate="{vmodel:'mettings.metEndTime',format:'yyyy-MM-dd'}" v-model="mettings.metEndTime" /> 
		                   </div> 
					</div>
				</div>
				
				
				<div class="row">
					<div class="col-md-6">
					
						<div class="form-group">
							<label for="title">报名开始时间</label>  
							<input type='text' class="form-control date form_date" id="signupStartTime" v-kmdate="{vmodel:'mettings.signupStartTime',format:'yyyy-MM-dd'}" v-model="mettings.signupStartTime" /> 
	                   </div>
	                
	                   
					</div>
					<div class="col-md-6">
					
					 <div class="form-group">
							<label for="title">报名截止时间</label>  
							<input type='text' class="form-control date form_datet" id="metEndTime" v-kmdate="{vmodel:'mettings.signupEndTime',format:'yyyy-MM-dd'}" v-model="mettings.signupEndTime" /> 
	                   </div> 
	                   
					</div>
				</div>
                	
				<div class="row">
					<div class="col-md-6">
					
						 <div class="form-group">
							<label for="title">会议联系方式</label>  
							<textarea class="form-control"  name="metLinkInfo" v-model="mettings.metLinkInfo"  rows="3" id="metLinkInfo"></textarea>
	                   </div> 
	                
	                   
					</div>
					<div class="col-md-6">
					
							<div class="form-group">
			                  <label for="title">会议日程</label>
			                  <textarea class="form-control"  name="metAgenda" v-model="mettings.metAgenda"  rows="3" id="metAgenda"></textarea>
			                </div>
	                   
					</div>
				</div>
				
                  <div class="form-group">
						<label for="title">会议地址</label>  
						<input type="text" name="metAddress" v-model="mettings.metAddress" class="form-control" id="metAddress" required aria-required="true" >
                   </div>  
                   
                
   				 <div class="form-group">
                  <label for="title">会议详情</label>
                  <textarea class="form-control"  name="metDetail" v-model="mettings.metDetail"  rows="3" id="metDetail"></textarea>
                </div>
               
               <div class="form-group">
                  <label for="title">会议须知</label>
                  <textarea class="form-control"  name="metNotes" v-model="mettings.metNotes"  rows="3" id="metNotes"></textarea>
                </div>  
                
                
                	<div class="row">
					<div class="col-md-6">
						  <div class="form-group">
			                  <label for="title">会议LOGO</label>
			                  <input type="text" name="metLogo" v-model="mettings.metLogo" class="form-control" id="metLogo"  >
			                </div>   
	                   
					</div>
					<div class="col-md-6">
						<div class="form-group">
		                  <label for="title">会议海报</label>
		                  <input type="text" name="metBigLogo" v-model="mettings.metBigLogo" class="form-control" id="metBigLogo"  >
		                </div>
					</div>
				</div>
				
                
               </div>
              <!-- /.box-body -->
              <div class="box-footer">
                 <button type="button" class="btn btn-default" v-on:click="cancel">取消</button>
                 <button type="button" class="btn btn-info pull-right"  v-on:click="doCreate">提交</button>
              </div>
            </form>
</div>
<script type="text/javascript">

new Vue({
        el: '#app_mettings_edit',
        data:  {
    		mettings:{
    			title: null,
    			subTtitle: null,
    			metLogo: null,
    			metBigLogo: null,
    			metStartTime: null,
    			metEndTime: null,
    			
    			signupStartTime: null,
    			signupEndTime: null,
    			
    			metLat: null,
    			metLon: null,
    			
    			metAddress: null,
    			
    			metLinkInfo: null,
    			metDetail: null,
    			metAgenda: null,
    			metNotes: null
    		},
    	    bus:new Vue()
     }, 
     mounted: function(){
    	 var _this=this;
     },
     methods: {
        	 doCreate: function () {
        		 var _this=this;
        	    	if($("#mettings_edit_form").valid()){
        	    		var url="/met/service/tenant/mettings/createMettings";
        	    		zfesAjax.ajaxTodo(url,_this.$data.mettings, function(data){
        	    			alertSwal.successText(data.message);
        	    			layer.close(layer.index);
        	    		})
        	    	}
        	    },
        	    cancel: function(){
        	    	 layer.close(layer.index);
        	    	 
        	    }
    }
})

 </script>
